package com.aiobc.business.dataInfo.domain;

import java.util.Date;

import com.aiobc.common.core.annotation.Excel;
import com.aiobc.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 数据审批对象 data_approval
 * 
 * @author xc
 * @date 2021-10-22
 */
public class DataApproval extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审批ID */
    @Excel(name = "审批ID")
    private String approvalId;

    /** 数据ID */
    @Excel(name = "数据ID")
    private String dataId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 用户IP */
    @Excel(name = "用户IP")
    private String userIp;

    /** 用户描述 */
    @Excel(name = "用户描述")
    private String userDesc;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private String isValid;

    /** 处理人 */
    @Excel(name = "处理人")
    private String handerId;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private String handStatus;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handTime;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private String revision;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时审批 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时审批", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setApprovalId(String approvalId) 
    {
        this.approvalId = approvalId;
    }

    public String getApprovalId() 
    {
        return approvalId;
    }
    public void setDataId(String dataId) 
    {
        this.dataId = dataId;
    }

    public String getDataId() 
    {
        return dataId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setUserIp(String userIp) 
    {
        this.userIp = userIp;
    }

    public String getUserIp() 
    {
        return userIp;
    }
    public void setUserDesc(String userDesc) 
    {
        this.userDesc = userDesc;
    }

    public String getUserDesc() 
    {
        return userDesc;
    }
    public void setIsValid(String isValid) 
    {
        this.isValid = isValid;
    }

    public String getIsValid() 
    {
        return isValid;
    }
    public void setHanderId(String handerId) 
    {
        this.handerId = handerId;
    }

    public String getHanderId() 
    {
        return handerId;
    }
    public void setHandStatus(String handStatus) 
    {
        this.handStatus = handStatus;
    }

    public String getHandStatus() 
    {
        return handStatus;
    }
    public void setHandTime(Date handTime) 
    {
        this.handTime = handTime;
    }

    public Date getHandTime() 
    {
        return handTime;
    }
    public void setRevision(String revision) 
    {
        this.revision = revision;
    }

    public String getRevision() 
    {
        return revision;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("approvalId", getApprovalId())
            .append("dataId", getDataId())
            .append("userId", getUserId())
            .append("userIp", getUserIp())
            .append("userDesc", getUserDesc())
            .append("isValid", getIsValid())
            .append("handerId", getHanderId())
            .append("handStatus", getHandStatus())
            .append("handTime", getHandTime())
            .append("revision", getRevision())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
